<!-- zet eze ook gewoon ergens in een header ofzo, zodat het niet op elke pagina komt xD -->
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="form-horizontal">
    <c:forEach var="message" items="${messages}">
        <div class="control-group">
            <div class="control-label-forum">
                <strong> ${message.username} </strong> 
                
                <strong> ${message.message} </strong> 
                
                <strong> ${message.messageId} </strong> <br />
              <fmt:formatDate value="${message.date}" pattern="dd-MM-yyyy" />
            </div>
        </div>
    </c:forEach>
    
 

     
   <div class="control-group">
        <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/DeleteServlet"> 
            <div class="control-label">
                <strong><fmt:message key="message.newmessage"/></strong>
             
            </div>
            <div class="controls"> 
                
              MessageID: <input type="text" name="messageid"><br>


            </div> 
            <br />
        <div class="controls">
            <input type="submit" name="submit" value="delete"/>
        </div>
    </div>
</div>
          </form>
    
    <div class="control-group">
        <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/message/add"> 
            <div class="control-label">
                <strong><fmt:message key="message.newmessage"/></strong>
            </div>
            <div class="controls"> 
             
            </div> 
            <br />
        <div class="controls">
      
        </div>
    </div>
</div>
</form>
            
            
                   
      <div class="control-group">
        <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/Register.jsp"> 
            <div class="control-label">
             
             
            </div>
              </div> 
            <br />
        <div class="controls">
            <input type="submit" name="login" value="Register"/>
        </div>
    </div>
</div>
          </form>
            
            <div class="control-group">
        <form class="form-horizontal" method="post" action="${pageContext.request.contextPath}/showservlet"> 
            <div class="control-label">
             
             
            </div>
              </div> 
            <br />
        <div class="controls">
            <input type="submit" name="login" value="show"/>
        </div>
    </div>
</div>
          </form>
            
   